package com.gewu.pm.http.response;

import java.util.List;
import java.util.Set;

/**
 *  登录返回
 */
public final class LoginBean {

    /**
     * allianceId : 29
     * authorizationResult : {"login":true,"permitList":["appvehiclerepair","appinstructions","applogin","appfeedback","apporder","appparkinglot","appcloudware","appvehicleproduction","messagecenter","appvehicle","appmaintenancerecords","applogin_app","appcloudware_battery","appcloudware_vehicle","apppersoncenter","appvehiclemap","apppersonsetting","appcloudware_parts","appvehiclemap_changer","appvehiclemap_repairer","appcloudware_vehicle_add","appvehiclemap_dispatcher","appcloudware_battery_add","appcloudware_parts_add","appcloudware_vehicle_using","appvehiclemap_finder","appcloudware_battery_using","appcloudware_parts_using"]}
     * currentHeadImage : http://img-test.picka.com.cn/image/1/20210512071356927597118.jpg?Expires=2567488436&OSSAccessKeyId=LTAI4FuRSfBowEw88d3BvbLF&Signature=yqfcH5nFC5qCByS199LHVNvwGzg%3D
     * currentId : 11
     * currentMobile : 17312124501
     * currentName : 一一
     * manageId : 0
     * operationId : 11
     * regionId : 17
     * roleList : [{"roleId":1,"roleName":"维修员"},{"roleId":2,"roleName":"换电员"},{"roleId":3,"roleName":"调度员"},{"roleId":4,"roleName":"找车员"}]
     * sendorderStatus : 0
     * token : {"expiresIn":36000,"refreshExpiresIn":36000,"refreshToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI4OWU1ZWRmOS1lNDY4LTRhMTctOTQ2My1jMjVjZmFhZjJmOWIifQ.eyJleHAiOjE2MjMxNjc4ODMsImlhdCI6MTYyMzEzMTg4MywianRpIjoiNGJjODg1NDQtMDMwMS00NDUwLWJkMDItNDU2NTllOTRhZjQzIiwiaXNzIjoiaHR0cDovLzE5Mi4xNjguMC43OjgxODAvYXV0aC9yZWFsbXMvcXgtbWFuYWdlIiwiYXVkIjoiaHR0cDovLzE5Mi4xNjguMC43OjgxODAvYXV0aC9yZWFsbXMvcXgtbWFuYWdlIiwic3ViIjoiY2IyYzY2YjctM2JkMC00ZWY3LWJ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icHJlZmVycmVkX3VzZXJuYW1lIjoiMTczMTIxMjQ1MDEiLCJnaXZlbl9uYW1lIjoi5aS 2021-06-08 13:58:02.674 24687-24841/com.gewu.pm.debug D/EasyHttp: n57Gz57KS5Z-O5biCIiwiZmFtaWx5X25hbWUiOiI0NTUifQ.W6YBDRCAyOZGMHSSe2fz38NI9yvQMBv6OaFq1G6A4Ke3w2BOqQ7vidtnD8jq1T8N8W9ZVECfBUXWTOUuOClQSTnptC3cr_gdTXFNaFaMH6KhG3YGGUkC5rqCVY_xDf1-TXwm7JqbF3EZqNVr3t3cMrk18gQpDbJ399Dyo2jrC37v8thklhqvwzvGuK5zoTOQsPTq_ObZgsk1Vd4aB6Nxnr5d_gL-I-lDIhKZV9kii-yVDfD9kIu9Y-x15GCLfFxvn1zceLQfuOrf6HJ09uiByXuV2H-Br0kQ9xkZhy7S6EGV-D3qf04p9u7DJeps2AE7IKdwAwpoIifOiduthHThag","tokenType":"Bearer"}
     * userId : 455
     * userType : 3
     */

    private int allianceId;
    private AuthorizationResultBean authorizationResult;
    private String currentHeadImage;
    private int currentId;
    private String currentMobile;
    private String currentName;
    private int manageId;
    private int operationId;
    private int regionId;
    private int sendorderStatus;
    private TokenBean token;
    private int userId;
    private int userType;
    private List<RoleListBean> roleList;

    public int getAllianceId() {
        return allianceId;
    }

    public void setAllianceId(int allianceId) {
        this.allianceId = allianceId;
    }

    public AuthorizationResultBean getAuthorizationResult() {
        return authorizationResult;
    }

    public void setAuthorizationResult(AuthorizationResultBean authorizationResult) {
        this.authorizationResult = authorizationResult;
    }

    public String getCurrentHeadImage() {
        return currentHeadImage;
    }

    public void setCurrentHeadImage(String currentHeadImage) {
        this.currentHeadImage = currentHeadImage;
    }

    public int getCurrentId() {
        return currentId;
    }

    public void setCurrentId(int currentId) {
        this.currentId = currentId;
    }

    public String getCurrentMobile() {
        return currentMobile;
    }

    public void setCurrentMobile(String currentMobile) {
        this.currentMobile = currentMobile;
    }

    public String getCurrentName() {
        return currentName;
    }

    public void setCurrentName(String currentName) {
        this.currentName = currentName;
    }

    public int getManageId() {
        return manageId;
    }

    public void setManageId(int manageId) {
        this.manageId = manageId;
    }

    public int getOperationId() {
        return operationId;
    }

    public void setOperationId(int operationId) {
        this.operationId = operationId;
    }

    public int getRegionId() {
        return regionId;
    }

    public void setRegionId(int regionId) {
        this.regionId = regionId;
    }

    public int getSendorderStatus() {
        return sendorderStatus;
    }

    public void setSendorderStatus(int sendorderStatus) {
        this.sendorderStatus = sendorderStatus;
    }

    public TokenBean getToken() {
        return token;
    }

    public void setToken(TokenBean token) {
        this.token = token;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getUserType() {
        return userType;
    }

    public void setUserType(int userType) {
        this.userType = userType;
    }

    public List<RoleListBean> getRoleList() {
        return roleList;
    }

    public void setRoleList(List<RoleListBean> roleList) {
        this.roleList = roleList;
    }

    public static class AuthorizationResultBean {
        /**
         * login : true
         * permitList : ["appvehiclerepair","appinstructions","applogin","appfeedback","apporder","appparkinglot","appcloudware","appvehicleproduction","messagecenter","appvehicle","appmaintenancerecords","applogin_app","appcloudware_battery","appcloudware_vehicle","apppersoncenter","appvehiclemap","apppersonsetting","appcloudware_parts","appvehiclemap_changer","appvehiclemap_repairer","appcloudware_vehicle_add","appvehiclemap_dispatcher","appcloudware_battery_add","appcloudware_parts_add","appcloudware_vehicle_using","appvehiclemap_finder","appcloudware_battery_using","appcloudware_parts_using"]
         */

        private boolean login;
        private Set<String> permitList;

        public boolean isLogin() {
            return login;
        }

        public void setLogin(boolean login) {
            this.login = login;
        }

        public Set<String> getPermitList() {
            return permitList;
        }

        public void setPermitList(Set<String> permitList) {
            this.permitList = permitList;
        }
    }

    public static class TokenBean {
        /**
         * expiresIn : 36000
         * refreshExpiresIn : 36000
         * refreshToken : eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI4OWU1ZWRmOS1lNDY4LTRhMTctOTQ2My1jMjVjZmFhZjJmOWIifQ.eyJleHAiOjE2MjMxNjc4ODMsImlhdCI6MTYyMzEzMTg4MywianRpIjoiNGJjODg1NDQtMDMwMS00NDUwLWJkMDItNDU2NTllOTRhZjQzIiwiaXNzIjoiaHR0cDovLzE5Mi4xNjguMC43OjgxODAvYXV0aC9yZWFsbXMvcXgtbWFuYWdlIiwiYXVkIjoiaHR0cDovLzE5Mi4xNjguMC43OjgxODAvYXV0aC9yZWFsbXMvcXgtbWFuYWdlIiwic3ViIjoiY2IyYzY2YjctM2JkMC00ZWY3LWJlYWEtYzA5ODljMWMwOGQxIiwidHlwIjoiUmVmcmVzaCIsImF6cCI6InF4LW1hbmFnZS1vYXV0aCIsInNlc3Npb25fc3RhdGUiOiJhNzA3NTM1Yy1kOTUxLTRjNzUtYmE4My03NzBiN2MyZmNjYzUiLCJzY29wZSI6ImVtYWlsIHByb2ZpbGUifQ.fNQLwWCHjB6mXHlzjLSjwW1YwAIOjOwxN8e1-AcHVOg
         * scope : email profile
         * sessionKey : null
         * token : eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJSakppS0ZfQXFMekN1YUh6QzBtWU56TEw5VW5TNkV6YWtjQUdyQ2N6cDRvIn0.eyJleHAiOjE2MjMxNjc4ODMsImlhdCI6MTYyMzEzMTg4MywianRpIjoiYmEzMjRlMjYtZjQ0My00YmJiLWEzNDEtMTFiNzA5MmQxYzNkIiwiaXNzIjoiaHR0cDovLzE5Mi4xNjguMC43OjgxODAvYXV0aC9yZWFsbXMvcXgtbWFuYWdlIiwiYXVkIjoiYWNjb3VudCIsInN1YiI6ImNiMmM2NmI3LTNiZDAtNGVmNy1iZWFhLWMwOTg5YzFjMDhkMSIsInR5cCI6IkJlYXJlciIsImF6cCI6InF4LW1hbmFnZS1vYXV0aCIsInNlc3Npb25fc3RhdGUiOiJhNzA3NTM1Yy1kOTUxLTRjNzUtYmE4My03NzBiN2MyZmNjYzUiLCJhY3IiOiIxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIm9mZmxpbmVfYWNjZXNzIiwidW1hX2F1dGhvcml6YXRpb24iXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6ImVtYWlsIHByb2ZpbGUiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsIm5hbWUiOiLlpKfnsbPnspLln47luIIgNDU1IiwicHJlZmVycmVkX3VzZXJuYW1lIjoiMTczMTIxMjQ1MDEiLCJnaXZlbl9uYW1lIjoi5aS 2021-06-08 13:58:02.674 24687-24841/com.gewu.pm.debug D/EasyHttp: n57Gz57KS5Z-O5biCIiwiZmFtaWx5X25hbWUiOiI0NTUifQ.W6YBDRCAyOZGMHSSe2fz38NI9yvQMBv6OaFq1G6A4Ke3w2BOqQ7vidtnD8jq1T8N8W9ZVECfBUXWTOUuOClQSTnptC3cr_gdTXFNaFaMH6KhG3YGGUkC5rqCVY_xDf1-TXwm7JqbF3EZqNVr3t3cMrk18gQpDbJ399Dyo2jrC37v8thklhqvwzvGuK5zoTOQsPTq_ObZgsk1Vd4aB6Nxnr5d_gL-I-lDIhKZV9kii-yVDfD9kIu9Y-x15GCLfFxvn1zceLQfuOrf6HJ09uiByXuV2H-Br0kQ9xkZhy7S6EGV-D3qf04p9u7DJeps2AE7IKdwAwpoIifOiduthHThag
         * tokenType : Bearer
         */

        private int expiresIn;
        private int refreshExpiresIn;
        private String refreshToken;
        private String scope;
        private Object sessionKey;
        private String token;
        private String tokenType;

        public int getExpiresIn() {
            return expiresIn;
        }

        public void setExpiresIn(int expiresIn) {
            this.expiresIn = expiresIn;
        }

        public int getRefreshExpiresIn() {
            return refreshExpiresIn;
        }

        public void setRefreshExpiresIn(int refreshExpiresIn) {
            this.refreshExpiresIn = refreshExpiresIn;
        }

        public String getRefreshToken() {
            return refreshToken;
        }

        public void setRefreshToken(String refreshToken) {
            this.refreshToken = refreshToken;
        }

        public String getScope() {
            return scope;
        }

        public void setScope(String scope) {
            this.scope = scope;
        }

        public Object getSessionKey() {
            return sessionKey;
        }

        public void setSessionKey(Object sessionKey) {
            this.sessionKey = sessionKey;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public String getTokenType() {
            return tokenType;
        }

        public void setTokenType(String tokenType) {
            this.tokenType = tokenType;
        }
    }

    public static class RoleListBean {
        /**
         * roleId : 1
         * roleName : 维修员
         */

        private int roleId;
        private String roleName;

        public int getRoleId() {
            return roleId;
        }

        public void setRoleId(int roleId) {
            this.roleId = roleId;
        }

        public String getRoleName() {
            return roleName;
        }

        public void setRoleName(String roleName) {
            this.roleName = roleName;
        }
    }
}